﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Xwy.Practical.Models
{
    public class MockUserinfoRepository:IUserinfoRepository
    {
        private readonly List<Userinfo> _userinfos;

        public MockUserinfoRepository()
        {
            _userinfos = new List<Userinfo> { 
                new Userinfo
                {
                    Id=1,Name="谢文宇1",Pwd="123456",Email="123@qq.com"
                },new Userinfo
                {
                    Id=2,Name="谢文宇2",Pwd="123456",Email="123@qq.com"
                },new Userinfo
                {
                    Id=3,Name="谢文宇3",Pwd="123456",Email="123@qq.com"
                },new Userinfo
                {
                    Id=4,Name="谢文宇4",Pwd="123456",Email="123@qq.com"
                }
            };
        }
        public IEnumerable<Userinfo> GetAllUserinfo()
        {
            return _userinfos;
        }
    }
}
